Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Sets a singular upvalue that’s derived from a function’s upvalue list. Selected via index.
function debug.setupvalue(function: function | number, index: number, replacement: any): ()
setupvalue
local upvalue = 0 local function foo() return upvalue end local function bar() upvalue += 1 end print(foo()) debug.setupvalue(foo, 1, 10000) print(foo())